<%@ page import="com.situ.web.pojo.entity.Teacher" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Gao
  Date: 2024/4/2
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="static/bootstrap-3.4.1-dist/css/bootstrap.css">
</head>
<body>
    <%--${list}--%>
    <%
        List<Teacher> list = (List<Teacher>) request.getAttribute("list");
    %>
    <table class="table table-striped table-bordered table-hover table-condensed">
        <tr>
            <td>ID</td>
            <td>名字</td>
            <td>年龄</td>
            <td>薪资</td>
        </tr>
        <%
            for (Teacher teacher : list) {
        %>
                <tr>
                    <td><%=teacher.getId()%></td>
                    <td><%=teacher.getName()%></td>
                    <td><%=teacher.getAge()%></td>
                    <td><%=teacher.getSalary()%></td>
                </tr>
        <%
            }
        %>

    </table>
</body>
</html>
